package com.itheima.demo02;

import java.io.File;
import java.io.IOException;

public class FileClass02 {
    public static void main(String[] args) {
        //method1();
        //method2();
        //method3();
    }

    private static void method3() {
        File file = new File("day11\\aaa\\aaa\\bbb\\ccc");
        boolean result = file.mkdirs();
        System.out.println(result);
    }

    private static void method2() {
        File file = new File("day11\\aaa\\aa");
        boolean result = file.mkdir();
        System.out.println(result);
    }

    private static void method1() {
        File file = new File("day11\\aaa\\aa.txt");
        try {
            boolean result = file.createNewFile();
            System.out.println(result);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
